package com.jiuyue.movehouse.common.exception;


import com.jiuyue.movehouse.common.handler.ResultCode;
import lombok.Getter;


@Getter
public class BadRequestException extends RuntimeException{

    private ResultCode resultCode;

    public BadRequestException(String msg){
        super(msg);
    }

    public BadRequestException(ResultCode resultCode){
        super(resultCode.getMsg());
        this.resultCode = resultCode;
    }

    public BadRequestException(ResultCode resultCode, String msg){
        super(msg);
        this.resultCode = resultCode;
    }


}
